<table border="0.5" cellpadding="2">
  <thead>
    <tr>
      <th align="center" style="width: 10%"><b>Id</b></th>
      <th align="center" style="width: 50%"><b>Institución</b></th>
      <th align="center" style="width: 20%"><b>Fecha inicio</b></th>
      <th align="center" style="width: 20%"><b>Fecha fin</b></th>
    </tr>
  </thead>
  <tbody>
  <?php foreach ($data as $convenio): ?>
    <tr nobr="true">
      <td align="center" style="width: 10%"><?php echo $convenio->id ?></td>
      <td style="width: 50%"><?php echo $convenio->institucion ?></td>
      <td align="center" style="width: 20%"><?php echo $convenio->f_inicio ?></td>
      <td align="center" style="width: 20%"><?php echo $convenio->f_fin ?></td>
    </tr>
  <?php endforeach ?>
  </tbody>
  <tfoot>
    <tr>
      <th colspan="4" align="right"><strong><?php echo $data->count() ?> resultado(s)</strong></th>
    </tr>
  </tfoot>
</table>
